import request from '@/utils/request'

// 登录
export function login(data) {
	return request({
		url: 'public/login.json',
		method: 'post',
		data
	})
}

// 注册
export function register(data) {
	return request({
		url: 'public/register.json',
		method: 'post',
		data
	})
}
